package com.liushuang.activemq;

/**
 * @author liushuang
 * @create 2020-07-13 15:58
 */
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class MessageConsumer {

    @Test
    public void msgConsumer() throws Exception {
        //初始化spring容器
        ApplicationContext applicationContext =  new ClassPathXmlApplicationContext("classpath:spring/applicationContext-activemq.xml");
        //等待
        System.in.read();
    }
}

